import React from 'react'
import { connect } from 'react-redux'

class HomePage extends React.Component {
  render() {
    console.log('----------------')
    console.log(this.props)
    return (
      <div>
        <h1>HomePage --- {this.props.swiperList.length}</h1>
      </div>
    )
  }
}

function mapStateToProps(state) {
  return {
    swiperList: state.swiper
  }
}

export default connect(mapStateToProps)(HomePage)
